package com.papers.juan.service;

import com.papers.common.core.domain.PageQuery;
import com.papers.common.core.page.TableDataInfo;
import com.papers.juan.domain.bo.TJuanGenerateDetailBo;
import com.papers.juan.domain.vo.TJuanGenerateDetailVo;

import java.util.Collection;
import java.util.List;

/**
 * 组卷明细Service接口
 *
 * @author papers
 * @date 2022-11-02
 */
public interface ITJuanGenerateDetailService {

    /**
     * 查询组卷明细
     */
    TJuanGenerateDetailVo queryById(String detailId);

    /**
     * 查询组卷明细列表
     */
    TableDataInfo<TJuanGenerateDetailVo> queryPageList(TJuanGenerateDetailBo bo, PageQuery pageQuery);

    /**
     * 查询组卷明细列表
     */
    List<TJuanGenerateDetailVo> queryList(TJuanGenerateDetailBo bo);

    /**
     * 新增组卷明细
     */
    Boolean insertByBo(TJuanGenerateDetailBo bo);

    /**
     * 修改组卷明细
     */
    Boolean updateByBo(TJuanGenerateDetailBo bo);

    /**
     * 校验并批量删除组卷明细信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}
